Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Determining Vector Cross Products


Q3Point3D_CrossProductTri

You can use the Q3Point3D_CrossProductTri function to determine the cross product of the two vectors defined by three three-dimensional points.

TQ3Vector3D *Q3Point3D_CrossProductTri (
const TQ3Point3D *point1, 
const TQ3Point3D *point2, 
const TQ3Point3D *point3, 
TQ3Vector3D *crossVector);
point1
A three-dimensional point.
point2
A three-dimensional point.
point3
A three-dimensional point.
crossVector
On exit, the cross product of the two vectors determined by subtracting point2 from point1 and point3 from point1.
DESCRIPTION
The Q3Point3D_CrossProductTri function returns, as its function result and in the crossVector parameter, the cross product of the two vectors determined by subtracting point2 from point1 and point3 from point2.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996